import { ref, computed } from 'vue'
import { defineStore } from 'pinia'

export const useUserStore = defineStore(
    'userInfo', () => {
        //pinia里定义用户的存储信息
        const userinfo = ref({
            uId: "",
            userName: "",
            userpass: "",
            userNickname: "",
            userRole: "",
            token: "",
        });
        return { userinfo };
    },
    {
        persist: true,
    }
)

